package com.younion.vo;

import cpcns.component.common.base.BaseVO;
import cpcns.persister.converter.IDomainObject;
import cpcns.persister.service.CompositeID;

import java.util.Date;


public class FavoritesVO extends BaseVO implements IDomainObject,Cloneable{

	/**  */
	private static final long serialVersionUID = -1L;

	private Integer id;

	private Integer type;//1:卡 ....其他类别的收藏

	private Integer favourId;

	private Date createTime;

	private String userToken;

	/**
	 * 
	 */
	public FavoritesVO() {
	}

	/** 
	 * @return the id
	 */ 
	public Integer getId() {
		return id;
	}

	/** 
	 * @param id the id to set 
	 */ 
	public void setId(Integer id) {
		this.id = id;
	}

	/** 
	 * @return the type
	 */ 
	public Integer getType() {
		return type;
	}

	/** 
	 * @param type the type to set 
	 */ 
	public void setType(Integer type) {
		this.type = type;
	}

	/** 
	 * @return the favourId
	 */ 
	public Integer getFavourId() {
		return favourId;
	}

	/** 
	 * @param favourId the favourId to set 
	 */ 
	public void setFavourId(Integer favourId) {
		this.favourId = favourId;
	}

	/** 
	 * @return the createTime
	 */ 
	public Date getCreateTime() {
		return createTime;
	}

	/** 
	 * @param createTime the createTime to set 
	 */ 
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUserToken() {
		return userToken;
	}

	public void setUserToken(String userToken) {
		this.userToken = userToken;
	}

	public CompositeID getCompositeID(){
		CompositeID _id = super.getCompositeID();
		_id.clear();
		if(id != null){
			_id.addKey("id", id);
		}
		return _id;
	}
}
